package com.example.feign.controller;

import com.example.feign.api.FeignDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author gg
 * @version 1.0
 * @date 2021/11/9 16:48
 */
@RestController
@RequestMapping("/feignDemo")
public class FeignDemoController {

    @Autowired
    FeignDemo feignDemo;

    @GetMapping("/test")
    public String test(){
        String test = feignDemo.test();
        return test;
    }
}
